
set(ENGINE_ROOT_DIR "${MOYU2_ROOT_DIR}/engine")
set(THIRD_PARTY_DIR "${ENGINE_ROOT_DIR}/3rdparty")
set(ENGINE_ASSET_DIR "/asset")
set(ENGINE_SCHEMA_DIR "/schema")

if(MSVC)
    add_compile_options("/MP")
    set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT MoYu2Editor)
endif()

set(SHADER_COMPILE_TARGET MoYu2ShaderCompile)
add_subdirectory(shader)

add_subdirectory(3rdparty)

add_subdirectory(source/runtime)
# add_subdirectory(source/editor)
add_subdirectory(source/test)

set(CODEGEN_TARGET "MoYu2PreCompile")
include(source/precompile/precompile.cmake)
set_target_properties("${CODEGEN_TARGET}" PROPERTIES FOLDER "Engine" )

add_dependencies(MoYu2Runtime "${CODEGEN_TARGET}")
